package com.cloud.bean.user;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuyuan
 * @since 2022-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("u_address")
public class Address extends Model<Address> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long userId;

    /**
     * 订单号
     */
    private String orderNo;

    private String provinceCode;

    /**
     * 省
     */
    private String provinceName;

    private String cityCode;

    /**
     * 城市
     */
    private String cityName;

    private String districtCode;

    /**
     * 区/县城
     */
    private String districtName;

    /**
     * 收件人姓名
     */
    private String nickname;

    private String mobile;

    /**
     * 精确地址
     */
    private String fullAddress;

    @TableField("isDefault")
    private Integer isDefault;

    /**
     * 商户号
     */
    private Long customerNo;

    private LocalDateTime createdTime;

    private LocalDateTime updatedTime;

    private String type;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
